﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace VocabCards
{
    public partial class PrintDeckControl : UserControl
    {
        public PrintDeckControl()
        {
            InitializeComponent();
            PageCards = new ObservableCollection<Card>();
            LayoutRoot.DataContext = this;
        }



        /// <summary>
        /// the cards to print on the current printing page
        /// </summary>
        public ObservableCollection<Card> PageCards { get; private set; }




        public double PageMargin
        {
            get { return (double)GetValue(PageMarginProperty); }
            set { SetValue(PageMarginProperty, value); }
        }

        // Using a DependencyProperty as the backing store for PageMargin.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty PageMarginProperty =
            DependencyProperty.Register("PageMargin", typeof(double), typeof(PrintDeckControl), new PropertyMetadata(0d));

        
    }
}
